package com.xszx.service.impl;

import com.xszx.bean.Attention;
import com.xszx.dao.SystemDao;
import com.xszx.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author MarFloral
 * @date 2022/12/9 13:55
 */
@Service
public class SystemServiceImpl implements SystemService {
    @Autowired
    SystemDao systemDao;

    @Override
    public List<Attention> selectAttention() {
        return systemDao.selectAttention();
    }

    @Override
    public List<Attention> selectAllAttention() {
        return systemDao.selectAllAttention();
    }

    @Override
    public List<Attention> selectAttentionByKey(String keyWord) {
        return systemDao.selectAttentionByKey(keyWord);
    }

    @Override
    public int deleteAttention(int id) {
        return systemDao.deleteAttention(id);
    }

    @Override
    public int addAttention(Attention attention) {
        return systemDao.addAttention(attention);
    }

    @Override
    public int updateAttention(int id) {
        return systemDao.updateAttention(id);
    }
}
